package com.wanxi.lambda;

public class EatableDemo {
    public static void main(String[] args) {
//        new EatableDemo().userEatable(new Eatable() {
//            @Override
//            public void eat() {
//                System.out.println("aa");
//            }
//        });
        new EatableDemo().userEatable(() -> System.out.println("aa"));
    }

    public void userEatable(Eatable e) {

    }
}
